﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLySuatChieu.aspx.cs" Inherits="LotteCinema.Admin.QuanLySuatChieu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            width: 213px;
        }
        .style30
        {
            text-align: right;
            width: 243px;
        }
        .style32
        {
            width: 243px;
        }
        .style33
        {
            width: 388px;
        }
        .style34
        {
            font-size: large;
            font-family: "Times New Roman", Times, serif;
        }
        .style35
        {
            margin-left: 55px;
        }
        .style36
        {
            margin-left: 41px;
        }
        .style37
        {
            margin-left: 64px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="title" style="font-size:14pt;">QUẢN LÝ SUẤT CHIẾU</div>
    <table style="width:100%;">
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongBao" runat="server" Font-Size="12pt" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td class="style26">
                <asp:Label ID="Label2" runat="server" Font-Size="12pt" Text="Mã Suất Chiếu:"></asp:Label>
                <asp:DropDownList ID="DDLMaSC" runat="server" Height="22px" Width="222px" 
                    AutoPostBack="True" onselectedindexchanged="DDLMaSC_SelectedIndexChanged" 
                    style="margin-left: 24px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td class="style26">
                <asp:Label ID="Label3" runat="server" Font-Size="12pt" Text="Mã Ca Chiếu:"></asp:Label>
                <asp:DropDownList ID="DDLMaCC" runat="server" Height="23px" Width="222px" 
                    style="margin-left: 35px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td class="style26">
                <asp:Label ID="Label4" runat="server" Font-Size="12pt" Text="Mã Phim:"></asp:Label>
                <asp:DropDownList ID="DDLMaPhim" runat="server" CssClass="style37" 
                    Height="21px" Width="223px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style33">
                &nbsp;</td>
            <td class="style26">
                <asp:Label ID="Label5" runat="server" CssClass="style34" Text="Tên Phim"></asp:Label>
                :<asp:TextBox ID="txtTenPhim" runat="server" CssClass="style35" Width="217px"></asp:TextBox>
                <asp:Button ID="btTimKiem" runat="server" CssClass="style36" 
                    onclick="btTimKiem_Click" Text="Tìm Kiếm" />
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style32">
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style26">
                <asp:GridView ID="grSuatChieu" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="MASC" 
                    onselectedindexchanged="grSuatChieu_SelectedIndexChanged" 
                    onpageindexchanging="grSuatChieu_PageIndexChanging" 
                    style="margin-left: 198px">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MASC" HeaderText="MASC" ReadOnly="True" 
                            SortExpression="MASC" />
                        <asp:BoundField DataField="MACC" HeaderText="MACC" SortExpression="MACC" />
                        <asp:BoundField DataField="MAPHIM" HeaderText="MAPHIM" 
                            SortExpression="MAPHIM" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle ForeColor="#000066" HorizontalAlign="Left" BackColor="White" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [SUATCHIEU]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style26">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style26">
                <asp:ImageButton ID="imThem" runat="server" Height="52px" 
                    ImageUrl="~/Images/THEM.png" Width="110px" onclick="imThem_Click" 
                    style="margin-left: 157px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" 
                    ImageUrl="~/Images/xoa.png" Width="110px" onclick="imXoa_Click" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" Width="110px" onclick="imSua_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
